@echo off
@REM ----------------------------------------------------------------------------------
@REM 0 - Build LitwareHR Sample Application
@REM 
@REM This Batch file Builds all the LitwareHR Sample Application Solutions
@REM
@REM ----------------------------------------------------------------------------------

set msBuildDir=%WINDIR%\Microsoft.NET\Framework\v3.5
set solutionDir="."
set buildType=Release
set returnErrorCode=true
set verbosity=quiet
set pause=true

@echo Building "LitwareHR.sln"
call %msBuildDir%\msbuild "..\solution\LitwareHR\LitwareHR.sln" /t:Rebuild /p:Configuration=%buildType% /verbosity:%verbosity%
@if errorlevel 1 goto :error
@echo Build Complete

@%WINDIR%\system32\windowspowershell\v1.0\powershell.exe .\Tasks\buildSmartClient.ps1

@goto :exit

:error
@echo An Error Occured building the LitwareHR Sample Application Solution

:exit
@echo Finished
